package com.pmcc.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by yaonan on 2018/11/20.
 * 短消息记录
 */
@Entity
@Table(name = "sys_sms")
public class SmsRecord extends UUIDEntity {
    @Column(name = "message")
    private String message;//短信内容
    @Column(name = "template_code")
    private String templateCode;// 短信调用的code
    @Column(name = "telephone")
    private String telephone;// 手机号
    @Column(name = "code")
    private String code;//短信返回的状态码
    @Column(name = "create_time")
    private Date createTime;//创建时间
    @Column(name = "del_flag")
    private Integer delFlag;//删除标记
    @Column(name = "customer_id")
    private String customerId;// 发送人
    @Column(name = "task_id")
    private String taskId;// 任务表id

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public SmsRecord(String message, String templateCode, String telephone, String code, Date createTime) {
        this.message = message;
        this.templateCode = templateCode;
        this.telephone = telephone;
        this.code = code;
        this.createTime = createTime;
    }

    public SmsRecord(String message, String templateCode, String telephone, String code, Date createTime, Integer delFlag) {
        this.message = message;
        this.templateCode = templateCode;
        this.telephone = telephone;
        this.code = code;
        this.createTime = createTime;
        this.delFlag = delFlag;
    }

    public SmsRecord() {
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
}
